<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>De Stijl: /Users/Piro/Dropbox/destijl/c/headers/dbattery.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">De Stijl
   
   </div>
   <div id="projectbrief">Librairie pour le projet De Stijl</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('dbattery_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">/Users/Piro/Dropbox/destijl/c/headers/dbattery.h</div>  </div>
</div>
<div class="contents">
<a href="dbattery_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef BATTERY_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define BATTERY_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00014"></a>00014 <span class="preprocessor">#endif</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="dconstantes_8h.html" title="Déclaration des constantes du projet.">./dconstantes.h</a>&quot;</span>
<a name="l00019"></a>00019 
<a name="l00025"></a><a class="code" href="struct_d_battery.html">00025</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> {
<a name="l00026"></a><a class="code" href="struct_d_battery.html#afa0aa72a974b865a2744a8dd271c8db4">00026</a>         void(*<a class="code" href="struct_d_battery.html#afa0aa72a974b865a2744a8dd271c8db4">free</a>) (<span class="keyword">struct </span><a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> *This); 
<a name="l00027"></a><a class="code" href="struct_d_battery.html#a382feec87ef183854a2753ae63f89379">00027</a>         void(*<a class="code" href="struct_d_battery.html#a382feec87ef183854a2753ae63f89379">print</a>) (<span class="keyword">struct </span><a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> *This); 
<a name="l00028"></a><a class="code" href="struct_d_battery.html#a166c13bde199aa503585e21fe9d2e6f9">00028</a>         void(*<a class="code" href="struct_d_battery.html#a166c13bde199aa503585e21fe9d2e6f9">set_level</a>) (<span class="keyword">struct </span><a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> *This, <span class="keywordtype">int</span> <a class="code" href="struct_d_battery.html#acf4d33ee4cff36f69b924471174dcb11">level</a>); 
<a name="l00029"></a><a class="code" href="struct_d_battery.html#a6270bed6f7402aa86d690aaa7c583571">00029</a>         int(*<a class="code" href="struct_d_battery.html#a6270bed6f7402aa86d690aaa7c583571">get_level</a>) (<span class="keyword">struct </span><a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> *This); 
<a name="l00030"></a><a class="code" href="struct_d_battery.html#acf4d33ee4cff36f69b924471174dcb11">00030</a>         <span class="keywordtype">int</span> <a class="code" href="struct_d_battery.html#acf4d33ee4cff36f69b924471174dcb11">level</a>; 
<a name="l00031"></a>00031     } <a class="code" href="dbattery_8h.html#a9041e712ce606796c5f62aa8979e4267">DBattery</a>;
<a name="l00032"></a>00032 
<a name="l00038"></a>00038     <a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a>* <a class="code" href="dbattery_8h.html#a9a213c40db63e80b8af805d56208407d" title="Instanciation de l&#39;objet DBattery.">d_new_battery</a>(<span class="keywordtype">void</span>);
<a name="l00039"></a>00039 
<a name="l00045"></a>00045     <span class="keywordtype">void</span> <a class="code" href="dbattery_8h.html#a1c2b3664633c9afdeeaec8d840227797" title="Fonction pour désallouer un instance de l&#39;objet DBattery.">d_battery_free</a>(<a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> *This);
<a name="l00046"></a>00046 
<a name="l00052"></a>00052     <span class="keywordtype">void</span> <a class="code" href="dbattery_8h.html#acd52943f034ce93dcfe3618fd83ba22d" title="Affichage d&#39;une instance d&#39;objet DBattery.">d_battery_print</a>(<a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> *This);
<a name="l00053"></a>00053 
<a name="l00062"></a>00062     <span class="keywordtype">void</span> <a class="code" href="dbattery_8h.html#ab2390146c0c1435e2c179919007af640" title="Mise à jour du niveau de la batterie décrit par un objet DBattery.">d_battery_set_level</a>(<a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> *This, <span class="keywordtype">int</span> <a class="code" href="struct_d_battery.html#acf4d33ee4cff36f69b924471174dcb11">level</a>);
<a name="l00063"></a>00063 
<a name="l00072"></a>00072     <span class="keywordtype">int</span> <a class="code" href="dbattery_8h.html#ad122c6c4383b7d818b7a17454ebcc6f3" title="Lecture du niveau d&#39;un objet DBattery.">d_battery_get_level</a>(<a class="code" href="struct_d_battery.html" title="DBattery est un objet contenant la description de l&#39;état de la batterie.">DBattery</a> *This);
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>}
<a name="l00076"></a>00076 <span class="preprocessor">#endif</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="dbattery_8h.html">dbattery.h</a>      </li>

    <li class="footer">Generated on Tue Apr 24 2012 14:13:31 for De Stijl by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6 </li>
   </ul>
 </div>


</body>
</html>
